function FileUploader() {
}

FileUploader.prototype.buildToken = function () {
};
FileUploader.prototype.url = function (promise, originalFileName, newFileName) {
};

FileUploader.prototype.newFilename = function (file) {
};

FileUploader.prototype.doUpload = function (token, newFileName, file) {
};

FileUploader.prototype.upload = function (file) {
    let token = this.buildToken();
    let newFileName = this.newFilename(file);
    let promise = this.doUpload(token, newFileName, file);
    let url = this.url(promise, file.name, newFileName);
    return {
         promise, url
    }
};

export default new FileUploader();
